UnitAction Class
Description:
A record that defines and stores the behavior and properties of the "UnitAction" class. It is a singleton object that manages all "UnitAction" objects.
add
Type: Function.
Description:
Adds a new "UnitAction" to the "UnitActionClass" with the specified name and parameters.
Signature:
add: function(
self: UnitActionClass,
name: string,
param: UnitActionParam
)
Parameters:
Parameter | Type | Description |
---|---|---|
name | string | The name of the new "UnitAction". |
param | UnitActionParam | The parameters for the new "UnitAction". |
clear
Type: Function.
Description:
Removes all "UnitAction" objects from the "UnitActionClass".
Signature:
clear: function(self: UnitActionClass)